home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Macintosh Demo Applications CD
/
Apple-MacintoshDemoApplicationsCD-1.0-1992.iso
/
More Information
/
QuickMail
/
Installer Resources
/
Scripts
/
INET.TELENET.v3.0ß1
< prev
next >
Wrap
Text File
|
1992-03-20
|
4KB
|
128 lines
*________________________________________________________________________
*
* INET.Script, for QuickMail™
* Copyright 1988-89 CE Software, Inc.
*
* Version 2.0ß1
*
* This script can be used to access INET's messaging service.
*
* A slight modification will allow access to Telemail. Questions can be
* addressed to ERSKINE on MacNet or you may call Mr. Tom Polivka at
* 703-631-6500.
*________________________________________________________________________
*
* MODIFIED 03/16/89 by Bill Davis. Changed the RECEIVE routine look for
* “Attn:” instead of “To:” in the RECEIVE and MAILFILE lines. Modified
* the SEND routine to TYPE Attn:«NAME»^M right before the DUMP command.
*
* This brings the script in line with the other scripts provided in the
* QuickMail package.
*
* NOTE:
* This modification has NOT been tested as of this writing, especially
* in the part of the RECEIVE that retrieves a binary file via XMODEM.
*
*________________________________________________________________________
*
* This routine is called to log us into INET Messaging
*
*________________________________________________________________________
:IN
ALERT 4,IN2,recognized.
TYPE ^M
TYPE ^M
TYPE ^M
TYPE C INET^M
WAIT User-id:
TYPE «LOGID»^M
WAIT Password:
TYPE «PASSWORD»^M
WAIT proceed:
TYPE ^M
WAIT command:
TYPE Messaging^M
NOMAIL No new mail.
WAIT Command?
SUCCESS
:IN2
FAILURE
*________________________________________________________________________
*
* This logs us off INET Messaging
*
*________________________________________________________________________
:BYE
TYPE bye^M
WAIT command:
TYPE bye^M
SUCCESS
*________________________________________________________________________
*
* This is called to send all of the mail destined for the INET mail
* center. The <<ADDRESS>> variable should contain the appropriate
* INET address (e.g. TB.PICKENS)
*
* Sending of Enclosures are not supported by this script.
*
*________________________________________________________________________
:SEND
OOPS 60,FAILURE
ALERT 3,S2,hold:
TYPE Compose^M
WAIT To:
TYPE «ADDRESS»^M
WAIT CC:
TYPE ^M
WAIT Subject:
TYPE «TOPIC»^M
WAIT Text:
TYPE Attn:«NAME»^M
DUMP
TYPE .^M
WAIT Send?
TYPE Y^M
WAIT Command?
SUCCESS
:S2
TYPE O^M
SUCCESS
*________________________________________________________________________
*
* This is called to receive mail. It is called continually for each piece
* of mail waiting in INET. If a binary mail is detected, an XMODEM
* binary download is set up. Note: because QuickMail does not
* support the <1st init>.<last name> notation used by INET, the mail
* will be sent to the custodian of the default mail center. In most
* cases, this will be the QuickMail user. HOWEVER: If the sender of a
* message adds the line “Attn: <name>” where <name> is the QuickMail
* name of the recipient, QuickMail will send the message directly to
* them when it receives it from INET. If <name> is misspelled, it will
* still go to the Custodian, however.
*
*________________________________________________________________________
:RECEIVE
OOPS 60,FAILURE
TYPE R^M
:R1
ALERT 1,FAILURE,Command?
ALERT 2,R2,receive it
BUFFER Action?
RECEIVE Subj:,Attn:,From:,,
TYPE ^M
GOTO R1
*________________________________________________________________________
* This routines handles receiving a binary file.
*________________________________________________________________________
:R2
WAIT Action?
TYPE DOWNLOAD BINARY^M
WAIT to cancel.
XMODEM DOWNLOAD,FAILURE
MAILFILE Subj:,Attn:,From:,,
WAIT Action?
TYPE ^M
GOTO R1
:R10
FAILURE